using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class teams : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        msgLabel.Text = Request.QueryString["msg"];
        String tmp = "";
        String teamId = "";
        for (int i = 0; i < ListaDruzynGridView.Rows.Count; i++)
        {
            tmp = ListaDruzynGridView.Rows[i].Cells[5].Text;
            teamId = ListaDruzynGridView.Rows[i].Cells[0].Text;

            if (tmp.Equals("aktywna"))
                ListaDruzynGridView.Rows[i].Cells[5].Text = "<b>Tak</b>&nbsp;<a href=\"ActivateTeam.aspx?a=nieaktywna&id=" + teamId + "\">(dezaktywuj)</a>";
            else
                ListaDruzynGridView.Rows[i].Cells[5].Text = "<b>Nie</b>&nbsp;<a href=\"ActivateTeam.aspx?a=aktywna&id=" + teamId + "\">(aktywuj)</a>";
        }
    }
}
